#include<iostream>
using namespace std;

class A
{
public:
	A()
	{
		++_scount;
	}
	A(const A& a)
	{
		++_scount;
	}
	~A()
	{
		--_scount;
	}
	static int GetAcount()
	{
		//_a = 1;
		return _scount;
	}
private:
	int _a;
	static int _scount;
};

int A::_scount = 0;

int main()
{
	cout << A::GetAcount() << endl;
	A a1;
	//a1._scount;
	A a2;
	A a3(a2);
	cout << a3.GetAcount() << endl;
	return 0;
}